<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'menu-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'htmlOptions' => array(
        'class' => 'form-horizontal',
    ),
        ));
?>
<div class="tabbable">

    <div class="tab-content">
        <?php $i = 1; ?>
        <div class="row-fluid">
            <div class="span12">
                <!--PAGE CONTENT BEGINS-->
                <div class="control-group">
                    <label class="control-label">Thứ tự hiện thị</label>
                    <div class="controls">
                        <?php echo $form->textField($model, "order", array('size' => 60, 'maxlength' => 100, 'class' => 'span5', 'placeholder' => 'Thứ tự hiện thị')); ?>
                        <span class="help-inline"><?php echo $form->error($model, 'order'); ?></span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">Tên menu</label>
                    <div class="controls">
                        <?php echo $form->textField($model, "name", array('size' => 60, 'maxlength' => 100, 'class' => 'span5', 'placeholder' => 'Tên menu')); ?>
                        <span class="help-inline"><?php echo $form->error($model, 'name'); ?></span>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label">Trang tĩnh</label>
                    <div class="controls">
                        <input type="checkbox" name="Menu[static]" style="opacity:1">
                        <span class="help-inline"><?php echo $form->error($model, 'static'); ?></span>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label">Trạng thái</label>
                    <div class="controls">
                        <select class="span3" name="Menu[active]">
                            <option value="1">Hiện</option>
                            <option value="0">Ẩn</option>
                        </select>
                        <span class="help-inline"><?php echo $form->error($model, 'active'); ?></span>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="form-actions">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Submit
                    </button>
                </div>
            </div>
            <!--PAGE CONTENT ENDS-->
        </div><!--/.span-->
    </div><!--/.row-fluid-->    

</div>
<?php $this->endWidget(); ?>
